package com.example.nft.service;

import com.example.nft.entity.Tutu2;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "Tutu2Service")
public interface Tutu2Service {

    @CachePut(key = "#p0+#p1")
    List<Tutu2> selectAll(String fenqu, String name);

    @CachePut(key = "'all'")
    List<Tutu2> selectAll();
    @Cacheable
    String insert();
}
